<template>
  <div class="pc_my absolute">
    <div class="main">
      <div class="header">
        <img src="http://diandian.zgkpz.com/images/m_my/touxiang.png" />
        <div class="title">
          <p>未登录</p>
          <p class="title_tate">到期时间：2021.06.12</p>
        </div>
      </div>
      <div class="menu">
        <ul>
          <li>
            <img src="http://diandian.zgkpz.com/images/m_my/shujuku.png" />
            <span>智能数据库</span>
          </li>
          <li>
            <img
              src="http://diandian.zgkpz.com/images/m_my/jinbishangcheng.png"
            />
            <span>金币商城</span>
          </li>
          <li>
            <img src="http://diandian.zgkpz.com/images/m_my/yaoqing.png" />
            <span>邀请有礼</span>
          </li>
          <li>
            <img src="http://diandian.zgkpz.com/images/m_my/huiben.png" />
            <span>点点教育绘本馆</span>
          </li>
          <li>
            <img src="http://diandian.zgkpz.com/images/m_my/ketang.png" />
            <span>点点教育智慧课堂</span>
          </li>
        </ul>
      </div>
      <div class="anniu">
        <p>
          <img src="http://diandian.zgkpz.com/images/m_my/register.png" />
        </p>
        <p>
          <img src="http://diandian.zgkpz.com/images/m_my/tuichu.png" />
        </p>
      </div>
    </div>
    <div class="menus">
      <div>
        <img
          src="http://diandian.zgkpz.com/images/m_gold/read.png"
          class="menu_img"
          @click="read"
        />
      </div>
      <div>
        <img
          src="http://diandian.zgkpz.com/images/m_gold/huiben.png"
          class="menu_img"
          @click="huiben"
        />
      </div>
      <div>
        <img
          src="http://diandian.zgkpz.com/images/m_gold/my.png"
          class="menu_img"
          @click="my"
        />
      </div>
    </div>
  </div>
</template>

<script>
const NAME = "User";
export default {
  name: NAME,
  props: {},
  data: function () {
    return {
      userInfo: {},
    };
  },
  created() {
    window.addEventListener("resize", this.handleResize);
  },
  watch: {},
  mounted: function () {},
  methods: {
    handleResize() {
      if (document.body.clientWidth <= 768) {
        this.$router.replace({ path: "/user" });
      }
    },
    read() {
      this.$router.replace({ path: "/" });
    },
    huiben() {
      this.$router.replace({ path: "/web/main" });
    },
    my() {
      this.$router.replace({ path: "/web/my" });
    },
  },
};
</script>

<style scoped>
.back {
  padding: 0.5rem;
}
.back img {
  width: 1rem;
}
.pc_my {
  background-image: url("http://diandian.zgkpz.com/images/m_rank/background.png");
  background-size: 100% 100%;
  height: 100vh;
  position: relative;
}
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.3rem;
}
.main {
  background-image: url(../../assets/images/tabel.png);
  background-size: 100% 100%;
  position: absolute;
  width: 3rem;
  height: 3rem;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.header img {
  display: block;
  width: 0.35rem;
  height: 0.35rem;
  margin-top: 0.23rem;
}
.header p {
  color: #ffffff;
  font-size: 0.12rem;
  height: 0.2rem;
}
.header .title_tate {
  font-size: 0.09rem;
}
.header .title {
  line-height: 0.5rem;
  padding-left: 0.2rem;
  text-align: center;
}
.menu {
  padding: 0.02rem;
}
.menu img {
  margin-right: 0.1rem;
  width: 0.15rem;
}
.menu ul {
  width: 100%;
  margin-left: 0.4rem;
  padding-top: 0.14rem;
}
.menu ul li {
  height: 0.26rem;
  font-size: 0.02rem;
  display: flex;
  align-items: center;
  padding-top: 0.1rem;
}
.menu ul li:nth-child(1) {
  padding-top: 0.05rem;
}
.menu ul li:last-child {
  padding-top: 0.13rem;
}
.menu ul li span {
  font-size: 0.08rem;
  color: #ffffff;
}
.anniu {
  width: 100%;
  text-align: center;
  position: absolute;
  margin-top: 0.135rem
}
.anniu img {
  width: 0.7rem;
}
.anniu p{
  height: 0.23rem;
}
.menus {
  background-size: cover;
  width: 100%;
  display: flex;
  justify-content: space-around;
  margin-top: 0.35rem;
  position: fixed;
  bottom: 0;
}
.menu_img {
  width: 0.3rem;
  height: 0.3rem;
  position: relative;
}
@media (min-height: 770px) and (min-height: 1024px) {
  .main {
    margin-top: 20%;
  }
  .header img {
    width: 0.85rem;
    height: 0.85rem;
  }
  .header .title {
    font-size: 0.2rem;
  }
  .menu ul li {
    height: 0.75rem;
    line-height: 0.95rem;
    font-size: 0.3rem;
  }
  .menu {
    margin-top: 0.65rem;
  }
  .anniu img {
    width: 2rem;
  }
}
</style>
